package com.jiaai.member.model;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * class_name:EditMemVO
 * describe:------------------>app修改会员
 * create_user:张昉平
 * create_date:2018/1/15
 * create_time:11:55
 */
public class EditMemVO implements Serializable{

    private String nickName;
    private Integer sex;
    private String mobile;
    private String avatar;
    private String signature;
    private String password;
    private String mId;
    private String city;

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getmId() {
        return mId;
    }

    public void setmId(String mId) {
        this.mId = mId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean checkNull(){
        return !StringUtils.isEmpty(this.avatar)? false :
                !StringUtils.isEmpty(this.signature)? false :
                        !StringUtils.isEmpty(this.mobile)? false :
                                !StringUtils.isEmpty(this.nickName)? false :
                                        !StringUtils.isEmpty(this.password)? false :
                                                !StringUtils.isEmpty(this.city)? false :
                                                this.sex != null? false : true;
    }
}
